package com.honeywen.mymvc.leetcode;

import java.util.ArrayList;
import java.util.List;

/**
 * 100. 相同的树 https://leetcode-cn.com/problems/same-tree/description/
 * @author wangwei
 * @date 2018/12/11 下午6:04
 */
public class BinaryTreeTest {

    public static void main(String[] args) {

        TreeNode root = new TreeNode(1);
        root.left = new TreeNode(2);
        root.right = new TreeNode(3);

        print(root);


    }

    public static void print(TreeNode treeNode) {

        if (treeNode == null) {
            return;
        }
        System.out.print(treeNode.val + ", ");
        print(treeNode.left);
        print(treeNode.right);

    }

    public boolean isSameTree(TreeNode p, TreeNode q) {
        List<Integer> list1 = new ArrayList<>();
        List<Integer> list2 = new ArrayList<>();

        list1.add(12);
        list2.add(44);


        return list1.equals(list2);


    }



}
